package com.chenyue.cm.user.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 商品表
 * </p>
 *
 * @author Lbx
 * @since 2024-02-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="JdGoodsSpu对象", description="商品表")
@TableName("jd_goods_spu")
public class JdGoodsSpu extends Model<JdGoodsSpu> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    @TableField("classify_id")
    @ApiModelProperty(value = "商品分类id")
    private String classifyId;

    @TableField("classify_name")
    private String classifyName;

    @TableField("good_name")
    @ApiModelProperty(value = "商品名称")
    private String goodName;

    @TableField("code")
    @ApiModelProperty(value = "商品编码")
    private String code;

    @TableField("img_arr")
    @ApiModelProperty(value = "轮播图")
    private String imgArr;

    @TableField("img_url")
    @ApiModelProperty(value = "主图")
    private String imgUrl;

    @TableField("version")
    @ApiModelProperty(value = "商品描述")
    private String version;

    @TableField("fee")
    @ApiModelProperty(value = "运费")
    private String fee;

    @TableField("fee_type")
    @ApiModelProperty(value = "运费类型(0-固定运费 1-运费模版)")
    private String feeType;

    @TableField("fee_formwork_id")
    @ApiModelProperty(value = "运费模版id")
    private String feeFormworkId;

    @TableField("details")
    @ApiModelProperty(value = "详情")
    private String details;

    @TableField("state")
    @ApiModelProperty(value = "商品状态")
    private Integer state;

    @TableField("hot_flag")
    @ApiModelProperty(value = "是否热门")
    private Integer hotFlag;

    @TableField("pubilsh_time")
    @ApiModelProperty(value = "发布时间")
    private String pubilshTime;

    @TableField("create_time")
    @ApiModelProperty(value = "创建时间")
    private String createTime;

    @TableField("create_user")
    @ApiModelProperty(value = "创建人")
    private String createUser;

    @TableField("update_time")
    @ApiModelProperty(value = "更新时间")
    private String updateTime;

    @TableField("update_user")
    @ApiModelProperty(value = "更新人")
    private String updateUser;

    @TableField("read_num")
    @ApiModelProperty(value = "浏览量")
    private Integer readNum;

    @TableField("integral")
    @ApiModelProperty(value = "积分")
    private Integer integral;

    @TableField("exchange")
    @ApiModelProperty(value = "兑换量")
    private Integer exchange;



    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
